let settingPara = {};
$('#submitSetting').click(function(){

    if($("#setSpeed").val() && $("#setTemp").val()){
        var gateway_name = $("#gateway_name").val().trim();
        var gateway_id = $("#gateway_id").val().trim();
        var url='http://php.'+server_name+'/device/device_operation?gateway_name='+gateway_name+'&gateway_id='+gateway_id+'&type=band_gateway_quest&token='+token;
        //alert(url);
        $.ajax({
            url: url,
            type: 'get',
            data: {
            },
            success: function(data,status){
                var res_data = JSON.parse(data);
                //alert(parseInt(res_data.status))
                if (1  === parseInt(res_data.status))
                {
                    alert("122")
                    band_flag = 1;
                }else{
                    alert(res_data.msg);
                }
            },
            error: function(data,err){
                alert("添加设备失败");
            }
        });
    }
});